import {STATISTICGETTOTALSALE, STATISTICGETTOTALSALEDAILY} from '@/services/api'
import {request, METHOD} from '@/utils/request'

/**
 * 获取销售统计
 */
export async function getTotalSale(date) {
    return request(STATISTICGETTOTALSALE, METHOD.GET,  {date: date, currency: 'CNY'})
}

/**
 * 获取销售统计
 */
export async function getTotalSaleDaily(date) {
    return request(STATISTICGETTOTALSALEDAILY, METHOD.GET,  {date: date, currency: 'CNY'})
}